package me.zhengjie.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.util.ruoyiexcel.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Long
 * @date 2021/6/28 13:31
 */
@Data
@ApiModel(value = "Student", description = "kwStudent实体类")
@TableName("kw_student")
public class Student {


    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "学号")
    @Excel(name = "学号")
    private String studentNumber;

    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String nameCn;

    @ApiModelProperty(value = "身份证号")
    @Excel(name = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号")
    private String phone;

    @ApiModelProperty(value = "学院")
    @Excel(name = "学院")
    private String college;

    @ApiModelProperty(value = "删除标志（0.未删除，1.已删除）")
    private String delFlag = "0";

    @ApiModelProperty(value = "班级")
    @Excel(name = "班级")
    private String classes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
